import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

import App from '@/App'

export const routes = [
  {
    path: '/',
    component: App,
    redirect: '/home',
    children: [
      {
        path: 'home',
        name: 'Home',
        component: () => import('views/index')
      },
      {
        path: 'authSelect',
        name: 'authSelect',
        component: () => import('views/AuthSelect')
      },
      {
        path: 'calendar',
        name: 'calendar',
        component: () => import('views/Calendar')
      },
      {
        path: 'weekCalendar',
        name: 'weekCalendar',
        component: () => import('views/WeekCalendar')
      },
      {
        path: 'dayCalendar',
        name: 'dayCalendar',
        component: () => import('views/DayCalendar')
      },
      {
        path: 'classSearch',
        name: 'classSearch',
        component: () => import('views/ClassSearch')
      },
      {
        path: 'lessonSearch',
        name: 'lessonSearch',
        component: () => import('views/LessonSearch')
      },
      {
        path: 'teachSearch',
        name: 'teachSearch',
        component: () => import('views/TeachSearch')
      },
      {
        path: 'room',
        name: 'room',
        component: () => import('views/Room')
      },
      {
        path: 'classSetting',
        name: 'classSetting',
        component: () => import('views/ClassSetting')
      },
      {
        path: 'download',
        name: 'download',
        component: () => import('views/FileDownload')
      },
      {
        path: 'teachingSta',
        name: 'teachingSta',
        component: () => import('views/TeachingSta')
      },
      {
        path: 'qualitySta',
        name: 'qualitySta',
        component: () => import('views/QualitySta'),
      },
      {
        path: 'qualityDetail',
        name: 'qualityDetail',
        component: () => import('views/QualityDetail')
      },
      {
        path: 'qaSta',
        name: 'qaSta',
        component: () => import('views/QASta'),
      },
      {
        path: 'qaDetail',
        name: 'qaDetail',
        component: () => import('views/QADetail')
      },
      {
        path: 'helpCenter',
        name: 'helpCenter',
        component: () => import('views/HelpCenter')
      },
      {
        path: 'support',
        name: 'support',
        component: () => import('views/Support')
      },
      {
        path: 'classInfo',
        name: 'classInfo',
        component: () => import('views/ClassmateInfo'),
      },
      {
        path: 'classDetail',
        name: 'classDetail',
        component: () => import('views/ClassmateDetail')
      },
      {
        path: 'stuNoti',
        name: 'stuNoti',
        component: () => import('views/StuNotification')
      },
      {
        path: 'notiSearch',
        name: 'notiSearch',
        component: () => import('views/NotificationSearch')
      },
      {
        path: 'smsMgr',
        name: 'smsMgr',
        component: () => import('views/SMSMgr')
      },
      {
        path: 'classSign',
        name: 'classSign',
        component: () => import('views/ClassSign')
      },
      {
        path: 'specClass',
        name: 'specClass',
        component: () => import('views/SpecClassSearch')
      },
      {
        path: 'stuDayPlan',
        name: 'stuDayPlan',
        component: () => import('views/StuRole/StuDayPlan')
      },
      {
        path: 'stuSign',
        name: 'stuSign',
        component: () => import('views/StuRole/StuLessionSign')
      },
      {
        path: 'stuDownload',
        name: 'stuDownload',
        component: () => import('views/StuRole/StuDownload')
      },
      {
        path: 'stuVideo',
        name: 'stuVideo',
        component: () => import('views/StuRole/StuViedeoLessionList')
      },
      {
        path: 'stuInfo',
        name: 'stuInfo',
        component: () => import('views/StuRole/StuPersonInfo')
      },
      
    ]
  },
]

const router = new VueRouter({
  routes
})

export default router
